package test;

//import bd.Conexion;




public class testPrepared {
    public testPrepared() {
    }

    public static void main(String[] args) {
        /*
        String sql = 
            "INSERT INTO AVW_DESARROLLO.ARTICULOS_BANNERS_WEB (\n" + "   " +
            "ART_CODIGO, BAN_CODIGO) \n" + 
            "VALUES ( ?,? )";

        ArrayList<ArticuloWeb> arr = new ArrayList<ArticuloWeb>();
        ArticuloWeb aw1 = new ArticuloWeb();
        ArticuloWeb aw2 = new ArticuloWeb();
        ArticuloWeb aw3 = new ArticuloWeb();

        aw1.setArtCodigo("ART_1");
        arr.add(aw1);

        aw2.setArtCodigo("ART_2");
        arr.add(aw2);

        aw3.setArtCodigo("ART_3");
        arr.add(aw3);

        for (ArticuloWeb a: arr) {

            try {
                PreparedStatement s = Conexion.get().getPreparedStatement(sql);
                System.out.println(a.getArtCodigo());
                s.setString(1, a.getArtCodigo());
                s.setString(2, "");
                s.execute();

            } catch (SQLException e) {

            } finally {

            }
        }
*/
    }
}
